package com.ruoyi.costumeShop.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.costumeShop.mapper.CostumeRefundOrderMapper;
import com.ruoyi.costumeShop.domain.CostumeRefundOrder;
import com.ruoyi.costumeShop.service.ICostumeRefundOrderService;

/**
 * refundOrderService业务层处理
 *
 * @author ruoyi
 * @date 2022-05-14
 */
@Service
public class CostumeRefundOrderServiceImpl implements ICostumeRefundOrderService
{
    @Autowired
    private CostumeRefundOrderMapper costumeRefundOrderMapper;

    /**
     * 查询refundOrder
     *
     * @param refundOrderId refundOrder主键
     * @return refundOrder
     */
    @Override
    public CostumeRefundOrder selectCostumeRefundOrderByRefundOrderId(Long refundOrderId)
    {
        return costumeRefundOrderMapper.selectCostumeRefundOrderByRefundOrderId(refundOrderId);
    }

    /**
     * 查询refundOrder列表
     *
     * @param costumeRefundOrder refundOrder
     * @return refundOrder
     */
    @Override
    public List<CostumeRefundOrder> selectCostumeRefundOrderList(CostumeRefundOrder costumeRefundOrder)
    {
        return costumeRefundOrderMapper.selectCostumeRefundOrderList(costumeRefundOrder);
    }

    /**
     * 新增refundOrder
     *
     * @param costumeRefundOrder refundOrder
     * @return 结果
     */
    @Override
    public int insertCostumeRefundOrder(CostumeRefundOrder costumeRefundOrder)
    {
        return costumeRefundOrderMapper.insertCostumeRefundOrder(costumeRefundOrder);
    }

    /**
     * 修改refundOrder
     *
     * @param costumeRefundOrder refundOrder
     * @return 结果
     */
    @Override
    public int updateCostumeRefundOrder(CostumeRefundOrder costumeRefundOrder)
    {
        return costumeRefundOrderMapper.updateCostumeRefundOrder(costumeRefundOrder);
    }

    /**
     * 批量删除refundOrder
     *
     * @param refundOrderIds 需要删除的refundOrder主键
     * @return 结果
     */
    @Override
    public int deleteCostumeRefundOrderByRefundOrderIds(Long[] refundOrderIds)
    {
        return costumeRefundOrderMapper.deleteCostumeRefundOrderByRefundOrderIds(refundOrderIds);
    }

    /**
     * 删除refundOrder信息
     *
     * @param refundOrderId refundOrder主键
     * @return 结果
     */
    @Override
    public int deleteCostumeRefundOrderByRefundOrderId(Long refundOrderId)
    {
        return costumeRefundOrderMapper.deleteCostumeRefundOrderByRefundOrderId(refundOrderId);
    }
}
